package com.hist.medical_treatment.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.hist.medical_treatment.entity.Invoice;

@Mapper
public interface InvoiceDao {
       @Select("select * from Invoice")
       List<Invoice> getInvoice();
       @Select("select InvoiceNum from invoice where ID=(select min(ID) from invoice where state=1)")
       String nextInvoice();
}
